<%-- 
    Document   : edit_password
    Created on : 29-mar-2012, 12.07.20
    Author     : Luca
--%>
<%
    if (session.getAttribute("userid") == null) {
        session.invalidate();
        getServletContext().getRequestDispatcher("/MainController?q=index").forward(request, response);
    }
%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>AsportoOnline | Cambia password</title>
        <style type="text/css">
            @import url("style.css");
        </style>
    </head>
    <body>
        <div class="meister">
            <div class="page">
                <div class="container">
                    <%@ include file="/WEB-INF/common/header.jsp"%>
                    <div class="navigation"> <a href="MainController?q=index">Home</a> </div>

                    <h1>Cambia password</h1>

                    <p>${error}</p>

                    <form method="POST" action="MainController?q=change_password_action">
                        Vecchia password:<input type="password" name="vecchia_password" /><br/>
                        Nuova password:<input type="password" name="nuova_password" /><br/>
                        Conferma nuova password:<input type="password" name="conferma_password" /><br/>
                        <input type="submit" value="SALVA" />
                    </form>
                    <%@ include file="/WEB-INF/common/footer.jsp"%>
                </div>
            </div>
        </div>
    </body>
</html>
